<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="renderer" content="webkit">
		<link href="../../css/bootstrap.min.css" rel="stylesheet">
		<link rel="stylesheet" href="../../js/jquery-easyui-1.4.4/themes/bootstrap/easyui.css">
		<link rel="stylesheet" href="../../js/jquery-easyui-1.4.4/themes/icon.css">
		<link rel="stylesheet" href="../../css/ext_icon.css">
		<script src="../../js/jquery-easyui-1.4.4/jquery.min.js"></script>
		<script src="../../js/bootstrap.min.js"></script>
		<script src="../../js/jquery-easyui-1.4.4/jquery.easyui.min.js"></script>
		<script src="../../js/jquery-easyui-1.4.4/locale/easyui-lang-zh_CN.js"></script>
		<script src="../../js/ext_jquery.js"></script>
		<script src="../../js/ext_easyui.js"></script>
		<script src="../../js/jquery.form.js"></script>
		<script src="../../js/My97DatePicker/WdatePicker.js"></script>
		<script src="../../js/Chart.min.js"></script>
		<script src="../../js/util.js"></script>
		<script src="../../js/ckeditor/ckeditor.js"></script>
		<link rel="stylesheet" href="../../css/style.css">
		<script src="../../js/main.js"></script>
		<title></title>
		<style>
			img {
				min-width: 200px;
				max-width: 400px;
			}
		</style>
	</head>

	<body>
		<script>
			$(function() {
				var submitForm = $('.form-table');
				var options = {
					dataType: 'json',
					beforeSubmit: function() {
						if (!submitForm.form('enableValidation').form('validate')) {
							parent.$.messager.progress('close');
							return false;
						}
						parent.$.messager.progress({
							title: '提示',
							text: '数据保存中，请稍后....'
						});
						return true;
					},
					success: function(result) {
						parent.$.messager.progress('close');
						if (result.success) {
							parent.$.messager.show({
								title: '提示',
								msg: '修改成功!',
								timeout: 3000
							});
							parent.$.modalDialog.openner_dataGrid
								.datagrid('reload'); //刷新表格
							parent.$.modalDialog.handler.dialog('close');
							//removeTabs();
						} else {
							parent.$.messager.alert('错误', result.msg, 'error');
						}
					}
				};
				submitForm.bind('submit', function(e) {
					e.preventDefault(); // <-- important
					$(this).ajaxSubmit(options);
				});
			});

			function submitForm() {
				//$('.form-table').submit();
				parent.$.messager.progress({
					title: '提示',
					text: '数据保存中，请稍后....'
				});
				setTimeout(function() {
					parent.$.messager.progress('close');
					parent.$.messager.show({
						title: '提示',
						msg: '修改成功!',
						timeout: 3000
					});
					removeTabs();
				}, 1200);
			}
		</script>
		<form class="form-table" style="width: 90%;" action="" method="post">
			<table class="table table-bordered table-condensed">
				<tr>
					<th width="20%">营业执照注册号：</th>
					<td colspan="3"><input class="easyui-textbox" name="name" data-options="prompt:'输入营业执照注册号',required:true" style="width: 100%; height: 30px;" value="1235"></td>
				</tr>
				<tr>
					<th>公司名称：</th>
					<td colspan="3"><input class="easyui-textbox" name="name" data-options="prompt:'输入公司名称',required:true" style="width: 100%; height: 30px;" value="b公司"></td>
				</tr>
				<tr>
					<th>法人代表：</th>
					<td width="30%"><input class="easyui-textbox" name="d" data-options="prompt:'输入法人代表',required:true,validType:'CHS'" style="width: 100%; height: 30px;" value="太先生"></td>
					<th width="20%">固定电话：</th>
					<td width="30%"><input class="easyui-textbox" name="d" data-options="prompt:'输入固定电话'" style="width: 100%; height: 30px;" value="0757-225255"></td>
				</tr>
				<tr>
					<th>公司地址：</th>
					<td colspan="3"><input class="easyui-textbox" name="add" data-options="prompt:'输入公司地址',required:true" style="width: 100%; height: 30px;" value="广东顺德"></td>
				</tr>
				<tr>
					<th>成立日期：</th>
					<td>
						<input class="easyui-datebox" data-options="
								sharedCalendar:'#cc',editable:false" style="width: 100%;height: 30px;" value="2004-06-30"></td>
					<th>营业期限：</th>
					<td width="30%">自
						<input class="easyui-datebox" data-options="
								sharedCalendar:'#cc',editable:false" style="width: 90%;height: 30px;" value="2004-06-30"><br>至
						<input class="easyui-datebox" data-options="
								sharedCalendar:'#cc',editable:false" style="width: 90%;height: 30px;" value="2054-06-29"></td>
				</tr>
				<tr>
					<th rowspan="2">营业执照：</th>
					<td colspan="3"><img src="../../img/1-1.jpg"></td>
				</tr>
				<tr>
					<td colspan="3"><input class="easyui-filebox" data-options="
								prompt:'不上传即不修改',
								buttonText:'上传修改',
								icons: [{
									iconCls:'icon-clear',
									handler: function(e){
										$(e.data.target).textbox('clear');
										}
									}]" style="width: 100%;height: 30px;"></td>
				</tr>
				<tr>
					<th>联系人：</th>
					<td><input class="easyui-textbox" name="d" data-options="prompt:'输入联系人',required:true,validType:'CHS'" style="width: 100%; height: 30px;" value="王小姐"></td>
					<th>联系电话：</th>
					<td><input class="easyui-numberbox" name="d" data-options="prompt:'输入联系电话',required:true,validType:'mobile'" style="width: 100%; height: 30px;" value="13445445466"></td>
				</tr>
				<tr>
					<th>邮箱：</th>
					<td colspan="3"><input class="easyui-textbox" name="add" data-options="prompt:'输入邮箱',required:true" style="width: 100%; height: 30px;" value="dae@11.com"></td>
				</tr>
				<tr>
					<th>备注：</th>
					<td colspan="3"><textarea name="description" class="form-control" rows="3">很好的合作伙伴</textarea></td>
				</tr>
			</table>
		</form>
		<div style="text-align: center;padding-bottom: 10px;">
			<a href="javascript:void(0);" class="btn btn-primary" role="button" onclick="submitForm();return false;">提&nbsp;&nbsp;&nbsp;&nbsp;交</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<a href="javascript:void(0);" class="btn btn-primary" role="button" onclick="removeTabs();">返&nbsp;&nbsp;&nbsp;&nbsp;回</a>
		</div>
		<div id="cc" class="easyui-calendar"></div>
	</body>

</html>